import request from '@/utils/request'

export default {

    /*地址信息 根据所选择的数组信息返回 拼接的名子*/
    addresInfoString(data){
        return request({
            url:'/common/provinces/resPCAInfo',
            method:'post',
            data:data
        })
    },


    /*行业信息 根据所选择的数组信息返回 拼接的名子*/
    industoryInfoString(data){
        return request({
            url:'/common/tradecategory/resCCJInfo',
            method:'post',
            data:data
        })
    },


    /*根据用户的Id加载福利的信息*/
    loadingCompanyWalfareUser(userId){
        return request({
            url:'/companys/company/option-welfare/'+userId,
            method:'get'
        })
    },

    /*根据用户的Id加载出来它所属的行业*/
    loadingCompanyIndustry(userId){
        return request({
            url:'/workjobs/workjob/tree-option-ccj/' + userId,
            method:'get'
        })
    },
    /*根据用户id信息，加载出来地址*/
    loadingCompanyAddressUser(userId){
        return request({
            url:'/companys/company/tree-option-prc/' + userId,
            method:'get'
        })
    },



    /*根据职位的Id查询出来它所属的行业*/
    loadingJobIdBelongIndustory(workJobId){
      return request({
          //url:'/workjobs/workjob/industory-option/' + workJobId,
          url:'/common/tradecategory/trade-category-industory/' + workJobId,
          method:'get'
      })
    },
    /*根据职位的Id查询出来它的所属地址*/
    loadingJobIdBelongAddress(workId){
        return request({
            url:'/workjobs/workjob/address-option/' + workId,
            mehtod:'get'
        })
    },
    /*根据职位的Id加载出来证书信息*/
    loadingJobIdBelongCertificates(workId){
        return request({
            url:'/workjobs/workjob/certificates-option/' + workId,
            method:'get'
        })
    },
    /*根据职位的Id加载出来福利信息*/
    loadingJobIdBelongWalfare(workId){
        return request({
            url:'/workjobs/workjob/walfare-option/' +workId,
            method:'get'
        })
    },




    /*加载学历信息*/
    loadingEducation(){
        return request({
            url:'common/education/select-option',
            method:'get'
        })
    },
    /*加载证书要求列表*/
    loadingCertifiCate(){
      return request({
          url:'/common/certificate/select-option',
          method:'get'
      })
    },
    /*加载福利制度列表*/
    loadingWelfare(){
        return request({
            url:'/common/welfare/select-option',
            method:'get'
        })
    },
    /*根据用户的Id返回行业类型信息*/
/*    loadingInstoryByUser(userId){
        return request({
            url:'/common/tradecategory/trade-category',
            //url:'/workjobs/workjob/tree-option-ccj',
            method:'get'
        })
    },*/
    /*加载行业分类列表*/
    loadingIndustory(){
        return request({
            //url:'/common/tradecategory/trade-category',
            url:'/workjobs/workjob/tree-option-ccj',
            method:'get'
        })
    },

    /*加载出来行业信息二级分类*/
    loadingIndustoryTwo(){
      return request({
          url:'/common/tradecategory/trade-category',
          method:'get'
      })
    },

    /*根据用户角色加载出来行业的分类*/
    loadingIndustoryByUser(userId){
        return request({
            url:'/common/tradecategory/trade-category',
            method:'get'
        })
    },

    /*加载地区分类*/
    loadingCompanyAddress(){
        return request({
            url:'/companys/company/tree-option-pcr',
            method:'get'
        })
    },
    /*加载企业性质分类*/
    loadingCompanyProperty(){
        return request({
            url:'/common/companyproperty/list-option',
            method:'get'
        })
    }
}
